package cn.shop.front.entity.req;

import cn.shop.utils.constant.Regular;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author : 李一涵
 * @date : Created in 2022-2-21 13:58
 * @description :
 */
@Data
public class PasswordReq {

    @NotNull(message = "请输入验证码")
    private String code;
    @NotNull(message = "请输入登录密码")
    @Pattern(regexp = Regular.PASSWORD, message = Regular.PASSWORD_MASSAGE)
    private String password;

}
